<?php

class Soul_Validation_Rule_DateTime extends Soul_Validation_Rule_Base {

    public function __construct(){
        parent::__construct();
    }

    public function getType(){
        return 'dateTime';
    }

    public function check($value) {
        if(is_string($value)){
            $date = date_parse($value);
            return $date['error_count'] == 0;
        }

        return FALSE;
    }
}